SYSINI page# 0001 next
2:
3:
4:
5:
6:
7:
8:
9:
10:
11:
12:
SYSINI page# 0002 next prev
14: BEGIN SYSINI ↔ SUBTTL SYSTEM INITIALIZATION - 1 SEPT 67
15:
16: LIBPNT: POINT 7,.+1
17: ASCIZ/
18: PUT THE LIBRASCOPE ON LINE OR YOU'LL SWAP ON THE 3330!
19: THEN PUSH CONTINUE.
20: /
21:
22: ↑SYSINI:JSP TAC,.+1
23: TLNE TAC,10000
24: JRST START
25: CONO APR,200000
26: CONO PI,10400
27: ↑JSR2: XCT ONCEI
28: CONO APR,200000
29: CONO PI,10400
30: CONSO DSK,1B27
31: JRST ONLINE
32: MOVE TAC,LIBPNT
33: JSR DDTTYPE
34: HALT ONLINE
35: ONLINE: SETZM SYSBEG
36: MOVE TAC,[XWD SYSBEG,SYSBEG+1]
37: BLT TAC,SYSEND
38: SETZM STBEG
39: MOVE TAC,[XWD STBEG,STBEG+1]
40: BLT TAC,STEND
41: SETZM UPTIME
42: MOVE P,[IOWD ERRPLN,ERRPDL]
43:
44: IFN FTDDT,<
45: DATAI APR,TAC
46: TLC TAC,777
47: SKIPN NOTDDT
48: TLNE TAC,-1
49: JRST INIDDT
50: TRNN TAC,10000
51: JRST CKDSWP
52: SETOM NOTDDT
53: MOVE TAC1,[HALT AUTOLOAD]
54: MOVEM TAC1,DDT
55: MOVEI TAC1,DDT+1
56: MOVEM TAC1,SYSSIZ
57: SETZM 36
58: JRST INIDDT
59: CKDSWP:
60: IFN FTDSWP,<
61: SETOM DDTSWP
62: TRNE TAC,20000
63: SETZM DDTSWP
64: INIDDT: SKIPN NOTDDT
65: PUSHJ P,DDTINI
66:
67: >
68:
69: DATAI APR,TAC
70: TLC TAC,777
71: TLNE TAC,-1
72: JRST SYSIN2
73: TRNE TAC,1
74: PUSHJ P,DDTCAL
75: MOVSI TAC1,-NMCELS
76: SYSIN1: SKIPGE MCELTB(TAC1)
77: TRC TAC,400000
78: TRNN TAC,400000
79: SETZM @MCELTB(TAC1)
80: TRNE TAC,400000
81: SETOM @MCELTB(TAC1)
82: ROT TAC,1
83: AOBJN TAC1,SYSIN1
84: SYSIN2:
85:
86: MOVE TAC,SYSSIZ
87: ADDI TAC,1777
88: ANDCMI TAC,1777
89: MOVEM TAC,SYSTOP
90:
91: PUSHJ P,CORINI
92: MOVEI TAC,[ASCIZ /SYSTEM INITIALIZED ON /]
93: SKIPN INIMES
94: MOVEM TAC,INIMES
SYSINI page# 0003 next prev
96: MOVE TAC,[XWD DVDIRIN+TTYATC+TTYUSE,ASSCON+ASSPRG]
97: HLRZ DEVDAT,DEVLST
98: SYS1: ANDCAM TAC,DEVMOD(DEVDAT)
99:
100: SETZM DEVLOG(DEVDAT)
101: HLRZ DEVDAT,DEVSER(DEVDAT)
102: JUMPN DEVDAT,SYS1
103: MOVEI TAC,IOGO
104: HRRM TAC,SYSDSP
105:
106: MOVEI TAC,P2INI
107: HRRM TAC,P2XFR
108:
109:
110:
111:
112: SKIPN DETFLG
113: JRST IOGO
114: MOVEI TAC,ASSCON
115: IORM TAC,ADDDB+DEVMOD
116:
117:
118: MOVEI DEVDAT,ADDDB
119: DPB TAC,PJOBN
120:
121: IORM TAC,XGPDDB+DEVMOD
122: MOVEI DDB,XGPDDB
123: DPB TAC,PJOBN
124:
125: IORM TAC,ADCDDB+DEVMOD
126: MOVEI DDB,ADCDDB
127: DPB TAC,PJOBN
128:
129: IORM TAC,DACDDB+DEVMOD
130: MOVEI DDB,DACDDB
131: DPB TAC,PJOBN
SYSINI page# 0004 next prev
133:
134: IOGO: CONO APR,733550+APRCHN
135: CONO PI,11577
136: MOVE P,[IOWD ERRPLN,ERRPDL]
137: PUSHJ P,FMCHK
138: JRST IOGO
139: IOGO1: MOVE AC1,TIME+P1PID
140: MOVE AC2,THSDAT+P1PID
141: MOVE TAC,[XWD P1DATA,P1DATA+1]
142: SETZM P1DATA
143: BLT TAC,P1DATA+PDATALEN-1
144: SETZM RTIME
145: SETZM TTIME
146: SETZM LASTDISASTER
147: MOVEM AC1,TIME+P1PID
148: MOVEM AC1,TIME+P2PID
149: MOVEM AC2,THSDAT+P1PID
150: MOVEM AC2,THSDAT+P2PID
151: IDIVI AC1,JIFSEC
152: HRL AC1,THSDAT
153: MOVEM AC1,TIMDAT
154: SKIPE INIMES
155: MOVEM AC1,INITIM
156: IFN FTBAT,<
157: MOVEI TAC,=10*JIFSEC
158: MOVEM TAC,BATYET
159: SETZM ALFRED
160: MOVE TAC,[XWD ALFRED,ALFRED+1]
161: BLT TAC,ALFRED+BATLEN-1
162: >
163:
164: MOVE TAC,[JRST UUO1]
165: MOVEM TAC,UUO0+1
166: MOVE TAC,[JRST UUO3]
167: MOVEM TAC,UUO2+1
168: MOVEI TAC,40
169: MOVE TAC1,P1NUM
170: TLNE TAC1,MAOFF
171: MOVEI TAC,140
172: MOVEM TAC,UUOLOC+P1PID
173: MOVE TAC,[POINT 36,CIPWT-1,35]
174: MOVEM TAC,CLOCK
175: MOVEI TAC,CAT(CH,\APRCHN)
176: MOVEM TAC,APRCH+P1PID
177: MOVEI TAC,CAT(CH,\CLKCHN)
178: MOVEM TAC,CLKCH+P1PID
179: MOVE TAC,[P2PID]
180: MOVEM TAC,OTHERID+P1PID
181: MOVEI TAC,APRCON
182: MOVEM TAC,APRCN+P1PID
183: MOVEI TAC,CLKSAVE
184: MOVEM TAC,CLKSV+P1PID
185: MOVEI TAC,CLKESAVE
186: MOVEM TAC,CLKESV+P1PID
187: MOVE TAC,[JEN @UUO0]
188: MOVEM TAC,UUOXIT
189: MOVEM TAC,UUOXI
190: MOVE PID,[P1PID]
191: MOVEM PID,APRID+P1PID
192: MOVE P,[IOWD ERRPLN,ERRPDL]
193: MOVEM P,ERRPD(PID)
194: MOVE TAC,[IOWD APRPLN,APRPD]
195: MOVEM TAC,APRPDL(PID)
196: SETOM JBTMSK
197: MOVE TAC,[JBTMSK,,JBTMSK+1]
198: BLT TAC,JBTMSK+JOBN-1
199: SETOM JBTWKM
200: MOVE TAC,[XWD JBTWKM,JBTWKM+1]
201: BLT TAC,JBTWKM+JOBN-1
202:
203: PUSHJ P,NXTINI
204:
205: PUSHJ P,SPWINI
206: PUSHJ P,QINI
207: PUSHJ P,FSINIT
208: PUSHJ P,DISINIT
209:
210:
211:
212:
213:
214:
215: HLRZ DDB,DEVLST
216: SETZM SAVITM
217: IOG0: HRRZ TAC,DEVSER(DDB)
218: CAMN TAC,SAVITM
219: JRST IOG01
220: MOVEM TAC,SAVITM
221: PUSH P,DDB
222: PUSHJ P,DINI(TAC)
223: POP P,DDB
224: IOG01: MOVEI TAC,ASSPRG
225: ANDCAB TAC,DEVMOD(DDB)
226: HRLOI TAC1,77
227: TDNE TAC,[TTYATC,,ASSCON]
228: TLO TAC1,770000
229: ANDM TAC1,DEVCHR(DDB)
230: TLNN TAC,DVTTY!DVLPT
231: SETZM DEVIOS(DDB)
232: SETZM DEVBUF(DDB)
233: HLRZ DDB,DEVSER(DDB)
234: JUMPN DDB,IOG0
235: MOVE TAC,[RSTBEG,,RSTBEG+1]
236: BLT TAC,RSTEND-1
SYSINI page# 0005 next prev
238:
239:
240:
241:
242: MOVEI J,JOBN-1
243: SETZM JOB
244: IOG2:
245: REPEAT 0,<
246: MOVSI TAC1,RUN1 ;GET HIM RUN SOMEWHERE
247: MOVEM TAC1,JB2STS(J)
248: >
249: MOVE TAC1,[XWD JNA!JLOG!SWP!JSEG!JWP,77]
250: AND TAC1,JBTSTS(J)
251: TLO TAC1,JERR
252: MOVEM TAC1,JBTSTS(J)
253: TLNN TAC1,JNA
254: JRST IOG4
255: TLNN TAC1,JLOG
256: JRST IOGKIL
257: TLNE TAC1,JSEG
258: JRST IOG6
259:
260: PUSHJ P,PRIBUF
261: PUSHJ P,MAKPDL
262: MOVEI AC1,0
263: MOVEM AC1,JBTPDL(J)
264: TLNN TAC1,SWP
265: JRST IOG5
266: LDB TAC,IMGIN
267: JUMPE TAC,IOG4
268: TRO TAC1,WIPEJD
269: MOVEM TAC1,JBTSTS(J)
270: JRST IOG6
271:
272: IOGKIL: TRNE TAC1,77
273: SOS NJOBS(TAC1)
274: PUSHJ P,IOGZ
275: PUSHJ P,KSTOP
276: JRST IOG4
277:
278: IOGZ: PUSHJ P,FBFLUSH
279: SETZB TAC,JBTSWP(J)
280: SETZM JB2SWP(J)
281: SKIPN PROG,JBTADR(J)
282: POPJ P,
283: SOS (P)
284: JRST CORE1
285:
286: IOG5: SKIPN JDAT,JBTDAT(J)
287: JRST IOG4
288: PUSH P,JOBDDT(JDAT)
289: PUSHJ P,CLRJB1
290: POP P,JOBDDT(JDAT)
291: IOG6: MOVNI TAC,STOPQ
292: MOVEM TAC,JOBQUE(J)
293: PUSHJ P,REQUE
294: IOG4: SOJG J,IOG2
295:
296: MOVEI J,JOBN-1
297: IOGS1: MOVE TAC,JBTSTS(J)
298: TLNE TAC,JSEG
299: SKIPE NJOBS(J)
300: JRST IOGS2
301: SETZM JBTSTS(J)
302: SETZM JOBNAM(J)
303: SETZM PRJPRG(J)
304: PUSHJ P,IOGZ
305: MOVNI TAC,NULQ
306: MOVEM TAC,JOBQUE(J)
307: PUSHJ P,REQUE
308: IOGS2: SOJG J,IOGS1
309: SETZM JOB
310:
311:
312: MOVE TAC,[XWD CHKBEG-CHKEND,CHKBEG]
313: MOVEM TAC,MONPTR
314: PUSHJ P,CHECK
315: MOVEM TAC1,MONSUM
316: IFN FTSTAT, <
317: MOVE TAC,[POINT 18,STATS]
318: MOVEM TAC,STATPTR
319: >
320: XCT PICON
321: REPEAT 0,< DATAO PTR,[1] ;ENABLE SYSTEM WR DETECTOR >
SYSINI page# 0006 next prev
323: MOVEI TAC,[ASCIZ /SYSTEM STARTED ON /]
324: SKIPN INIMES
325: MOVEM TAC,INIMES
326: MOVSI J,-TCONLN-1
327: IOG3: SKIPN DEVDAT,TTYTAB(J)
328: JRST IOG3A
329: PUSHJ P,CRLF
330: MOVE TAC1,DEVNAM(DEVDAT)
331: PUSHJ P,PRNAME
332: MOVEI TEM,11
333: XCT TYO
334: MOVEI TAC,[ASCIZ/ (DOWN) /]
335: SKIPN MAINTMODE
336: SKIPE TTYLOK
337: PUSHJ P,CONMES
338: MOVE TAC,INIMES
339: PUSHJ P,CONMES
340: PUSHJ P,DAYT2
341: PUSHJ P,PRCNTC
342: PUSHJ P,TTYSTR
343: IOG3A: AOBJN J,IOG3
344:
345: IFN FTDDT,<
346: PUSHJ P,DISMES
347: ASCIZ /DDT STARTS AT /
348: HRRZ TAC,SYSDSP+1
349: PUSHJ P,DISLOC
350: PUSHJ P,DISCRLF
351: >
352:
353:
354:
355:
356:
357:
358: SETZM INIMES
359: SETZB J,JOB
360: MOVE PID,[P1PID]
361: JRST NULJOB
SYSINI page# 0007 next prev
363:
364:
365: ↑P2INI: MOVE TAC,[XWD P2DATA,P2DATA+1]
366: CONO PI,10400
367: SETZB J,P2DATA
368: BLT TAC,P2DATA+PDATALEN-1
369: CONO APR,733550+APRCHN
370: MOVE P,[IOWD ERRPLN,ERRPDL+P2PID]
371: MOVE TAC,[JRST P2UUO1]
372: MOVEM TAC,UUO0+P2PID+1
373: MOVE TAC,[JRST P2UUO3]
374: MOVEM TAC,UUO2+P2PID+1
375: MOVEI TAC,40
376: MOVE TAC1,P2NUM
377: TLNE TAC1,MAOFF
378: MOVEI TAC,140
379: MOVEM TAC,UUOLOC+P2PID
380: MOVE TAC,[POINT 36,CIPWT+P2PID-1,35]
381: MOVEM TAC,CLOCK+P2PID
382: MOVEI TAC,CAT(P2CH,\APRCHN)
383: MOVEM TAC,APRCH+P2PID
384: MOVEI TAC,CAT(P2CH,\CLKCHN)
385: MOVEM TAC,CLKCH+P2PID
386: MOVE TAC,[P1PID]
387: MOVEM TAC,OTHERID+P2PID
388: MOVEI TAC,AP2CON
389: MOVEM TAC,APRCN+P2PID
390: MOVEI TAC,CL2SAVE
391: MOVEM TAC,CLKSV+P2PID
392: MOVEI TAC,CL2ESAVE
393: MOVEM TAC,CLKESV+P2PID
394: MOVE TAC,[JEN @UUO0+P2PID]
395: MOVEM TAC,UUOXIT+P2PID
396: MOVEM TAC,UUOXI+P2PID
397: SETZM JOB+P2PID
398: SETZM JOBADR+P2PID
399: SETZM USRREL+P2PID
400: MOVE PID,[P2PID]
401: MOVEM PID,APRID(PID)
402: MOVE TAC,[IOWD ERRPLN,ERRPDL+P2PID]
403: MOVEM TAC,ERRPD(PID)
404: MOVE TAC,[IOWD APRPLN,APRPD+P2PID]
405: MOVEM TAC,APRPDL(PID)
406: MOVE TAC,CH3
407: CAMN TAC,CH3
408: JRST .-1
409: XCT P2CON
410:
411: PUSHJ P,XGPIN2
412: PUSHJ P,PTRREL
413:
414: PUSHJ P,DISMES
415: ASCIZ/↓
416: PDP-6 STARTED /
417: PUSHJ P,DISDATE
418:
419:
420: JRST NULJOB
421:
422:
423:
424: ↑PWROFF:
425: CONO PI,PIOFF
426: EXCH 17,PWRCNT
427: SOJG 17,.
428: MOVEI 17,-1
429: EXCH 17,PWRCNT
430: AOS P1OFF
431: CONO PI,PION
432: JEN @CH3
433:
434: ↑P2ROFF:
435: CONO PI,PIOFF
436: EXCH 17,P2RCNT
437: SOJG 17,.
438: MOVEI 17,-1
439: EXCH 17,P2RCNT
440: AOS P2OFF
441: CONO PI,PION
442: JEN @P2CH3
443:
444: MCELTB: TTYLOK
445: MAINTM
446: DDOFF
447: DEBMOD
448: XWD 400000,DDTSWP
449: 0
450: EXPMOD
451: NOLOGIN
452: IFN IMPSW,<IMPDIE
453: IFN IMPSW,<IMPPMS
454: BLTSWP
455: IEARLY
456: NMCELS←←.-MCELTB
457: BEND SYSINI
EOF: SYSINI end-of-file. cnt=6